
/**
 * Copyright 2016 Yonyou Corporation Ltd. All Rights Reserved.
 * This software is published under the terms of the Yonyou Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 *
 * @Project Name : dms.manage
 * @File name : RoleCtrlService.java
 * @Author : yll
 * @Date : 2016年8月8日
 * <p>
 * ----------------------------------------------------------------------------------
 * Date       Who       Version     Comments
 * 1. 2016年8月8日    yll    1.0
 * <p>
 * <p>
 * <p>
 * <p>
 * ----------------------------------------------------------------------------------
 */

package com.yonyou.cyxdms.sysAuth.service.service.role;


import java.util.Map;

/**
 * 角色受控权限
 *
 * @author yll
 * @date 2016年8月8日
 */

public interface RoleCtrlService {


    public Map<String, String> queryMenuCtrl(Integer permissionType, String id);

    public void editPermissionCtrl(Integer permissionType, String permissionId, String ctrlCode, Integer type);

    public void deleteMenuByPermissionId(Integer permissionType, String permissionId, Integer type);

    public Integer addPermissionCtrl(Integer permissionType, String permissionId, String ctrlCode, Integer type);

    public void deletePermissionCtrl(Integer permissionType, String permissionId, String ctrlCode, Integer type);

    public Integer addRolePosition(String ctrlCode,String permissionId);


    public void deleteRolePosition(String roleId);

}
